/*
 * ConversionDiscount.java
 *
 * Created on April 10, 2007, 12:00 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.jjenkins.data;

/**
 * This method contains the business objects, which has the setters and getters
 * @author Intex2Week
 */
public class ConversionDiscount extends RevenueSourceBO {
    private double percent = 0.0;
    private double quantity = 0.0;
    private double calPrice = 0.0;
    
    /**
     * This method gets the discount amount
     * @param guid 
     */
     public ConversionDiscount (String guid)
    {
        super.setId(guid);
    }
    
    /**
     * returns the percent of discount
     * @return discount
     */
    public double getPercent ()
    {
        return percent;
    }

    /**
     * sets the percent discount
     * @param percent 
     */
    public void setPercent (double percent)
    {
        this.percent = percent;
    }

    /**
     * gets tge quantity of the item
     * @return quantity
     */
    public double getQuantity ()
    {
        return quantity;
    }

    /**
     * sets the quantity
     * @param quantity 
     */
    public void setQuantity (int quantity)
    {
        this.quantity = quantity;
    }
    
    /**
     * calculatethe price
     * @return getPrice()
     */
     public double calcPrice(){
        //setPrice(getConceptualBackup().getPrice() * getBackupSize() * getMonthsBetween(getBeginDate(), getEndDate()));
        return calPrice;
        
    }
    
    /**
     * creates the description
     * @return getDescription()
     */
     public String createDescription(){
        //setDescription(getBackupSize() + "  GB             Backup Service         Date:  " + getBeginDate() + " to " + getEndDate());
        return getDescription();
        
    }
   
   
    
}
